package com.study.mysql.readwriteseparationshardingjdbc.controller;

import com.study.mysql.readwriteseparationshardingjdbc.entity.BusinessOrder;
import com.study.mysql.readwriteseparationshardingjdbc.service.IBusinessOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@Slf4j
@RestController
@RequestMapping("/business/order")
public class BusinessOrderController {

    @Autowired
    private IBusinessOrderService iBusinessOrderService;

    @GetMapping("/list")
    public List<BusinessOrder> queryMasterOrder() {
        return iBusinessOrderService.list();
    }


}
